package com.guaoran.micro.services.spring.cloud.eureka.client.user.service.provider;

import com.guaoran.micro.services.spring.cloud.feign.person.api.web.WebConfig;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.hystrix.EnableHystrix;
import org.springframework.context.annotation.Import;
import org.springframework.data.jpa.repository.config.EnableJpaAuditing;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * Person Client 应用程序
 *
 */
@SpringBootApplication
@EnableEurekaClient //激活 eureka 客户端
@EnableHystrix //激活 hystrix
@Import(WebConfig.class)

@EnableTransactionManagement(proxyTargetClass = true) //jpa
public class SpringCloudFeignProviderApplication {

    public static void main(String[] args) {
        SpringApplication.run(SpringCloudFeignProviderApplication.class, args);
    }

}
